package com.smmisia.common.entity.auth.convertor;

import com.smmisia.common.entity.auth.SysRole;
import com.smmisia.common.request.auth.RoleRequest;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface SysRoleConvertor {

    SysRoleConvertor INSTANCE = Mappers.getMapper(SysRoleConvertor.class);

    SysRole toEntity(RoleRequest request);
}
